﻿using nplJobsCommon.JobSeeker;
using nplJobsDAL.Insert;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace nplJobsBLL.ProcessJob
{
    public class ProcessInsertJobAlert
    {
        public JobAlert JobAlert { get; set; }
        public Int64 lastJobAlertID = -1;
        public int JobAlertID { get; set; }
        public ProcessInsertJobAlert(){}

        public void invoke()
        {
            InsertJobAlert insertJobAlert = new InsertJobAlert();
            insertJobAlert.JobAlert = this.JobAlert;
            insertJobAlert.Insert();
            lastJobAlertID = insertJobAlert.lastJobAlertID;
        }

        public Guid JobSeekerID { get; set; }
    }
}
